package practice;


public abstract class AbstractEmployee {
	private String name;
	private int number;
	private AbstractMyDate brithday;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public AbstractMyDate getBrithday() {
		return brithday;
	}

	public void setBrithday(AbstractMyDate brithday) {
		this.brithday = brithday;
	}

	public AbstractEmployee() {
		super();
	}

	public AbstractEmployee(String name, int number, AbstractMyDate brithday) {
		super();
		this.name = name;
		this.number = number;
		this.brithday = brithday;
	}

	public abstract double earnings();
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "[name="+name+",number="+number+";brithday="+brithday+"]";
	}
	
}
